﻿namespace CodingExercises._11_20;

public class SafeSum
{
    // 安全地将整数求和为长整型
    public static long Method(IEnumerable<int> numbers)
    {
        return numbers.Sum(number => (long)number);
    }
}